package vip.ablog.xmall.product;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/***
 ** @Author: Allan
 ** @Date: 2020/12/28 16:02
 ** @Desc:
 ***/
public class Test {
    public static void main(String[] args) {
        String[] arr = {"aa","bb","cc"};
        List<String> list = new ArrayList<>(Arrays.asList(arr));
        System.out.println(list);
        list.add("dd");
        System.out.println(list);
        for(String d:list){
            if ("aa".equals(d)){
                list.remove(d);
            }
        }
    }
}
